package com.myteam.fugaocrm.servlet;

import java.io.IOException;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.myteam.fugaocrm.task.RemindTask;


@WebServlet(value = "/remind", loadOnStartup = 2)
public class Remind extends HttpServlet {
	private static final long serialVersionUID = 193472209604798300L;
	
	@Override
    public void init(final ServletConfig config) throws ServletException {
		RemindTask remindTask = new RemindTask();
		Thread remindThread = new Thread(remindTask);
		remindThread.start();
	}
    
    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    }
    
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    }
}
